﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>自动发起</title>
    <link href="../../../Comm/Style/Table0.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI145/themes/icon.css" rel="stylesheet" type="text/css" />
    <link href="../../../Scripts/easyUI145/themes/default/easyui.css" rel="stylesheet" type="text/css" />
    <link href="../../../../DataUser/Style/ccbpm.css" rel="stylesheet" type="text/css" />
    <script src="../../../Scripts/easyUI145/jquery.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/easyUI145/jquery.easyui.min.js" type="text/javascript"></script>
    <script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../../../Scripts/config.js" type="text/javascript"></script>
    <script src="../../../Scripts/QueryString.js" type="text/javascript"></script>
    <script src="../../../Comm/Gener.js" type="text/javascript"></script>
    <script src="DDLBar.js" type="text/javascript"></script>
    <script src="../../../Scripts/EasyUIUtility.js"></script>
    <script src="../../CCFlowEnum.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(function () {

            //初始化下拉框.
            InitBar(DirCondModel.ByLineCond);

            //获取节点属性.
            var nodeNo = GetQueryString("FK_Node");

            var node = new Entity("BP.WF.Node", nodeNo);
            //批量为复制.
            if (node.CondModel == DirCondModel.ByLineCond) {
                GenerFullAllCtrlsVal(node);
            }

        });
        function Save() {

            //更新节点表单类型.
            var nodeNo = GetQueryString("FK_Node");
            var node = new Entity("BP.WF.Node", nodeNo);
            node.CondModel = DirCondModel.ByLineCond; // CondModel.Line;
            node.CopyURL();  //从url里面copy数据.
            node.CopyForm(); //从from里面copy数据.
            if (node.Update() == 0)
                node.Insert();
            alert("保存成功")
            window.location.href = window.location.href;
        }
    </script>
</head>

<body>
    <div id="bar">
    </div>

    <fieldset id="help">

        <legend id="help">
            由连接线条件控制
        </legend>

        <ul>

            <li>该模式需要为每一跟连接线设置方向条件.</li>
            <li>ccbpm在发送的时候会检查这些条件，如果条件成立就转向这个节点. </li>
            <li>该模式是让ccbpm自动为您计算要发送到的节点. </li>
            <li> <img class="HelpImg" src="CondModel0.png" /> </li>
            <li>请在右边要到达的节点设置方向条件. </li>

        </ul>
    </fieldset>
</body>
</html>
